package App.Model;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    //待加入头像,个性签名等
    private String headerUrl;//头像在服务器中的地址
    private String userSignature;//用户的个性签名
    private String UserId;//唯一辨识码
    private String UserName;
    private String Password;//密码

    private Date signDate;//注册日期

    public User(String s, String s1) {
        this.UserId = s;
        this.Password = s1;
    }

    public User() {

    }

    public static User DeepCopy(User user){
        User deepUser = new User();
        deepUser.setHeaderUrl(user.getHeaderUrl());
        deepUser.setUserSignature(user.getUserSignature());
        deepUser.setUserId(user.getUserId());
        deepUser.setPassword(user.getPassword());
        deepUser.setSignDate(user.getSignDate());
        deepUser.setUserName(user.getUserName());
        return deepUser;
    }


    public String getUserName() {
        return UserName;
    }

    public void setUserName(String userName) {
        UserName = userName;
    }

    public String getUserId() {
        return UserId;
    }

    public void setUserId(String userId) {
        UserId = userId;
    }

    public String getPassword() {
        return Password;
    }

    public void setPassword(String password) {
        Password = password;
    }

    public Date getSignDate() {
        return signDate;
    }

    public void setSignDate(Date signDate) {
        this.signDate = signDate;
    }

    public String getHeaderUrl() {
        return headerUrl;
    }

    public void setHeaderUrl(String headerUrl) {
        this.headerUrl = headerUrl;
    }

    public String getUserSignature() {
        return userSignature;
    }

    public void setUserSignature(String userSignature) {
        this.userSignature = userSignature;
    }
}
